package ${webPackageName};

import org.springframework.boot.SpringApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import ${webPackageName}.constant.ScanPackageConstant;

/**
 * 排除原生Druid,在多数据源那里再配置druid
 * @author lizihao
 *
 */
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
@ComponentScan(basePackages = {ScanPackageConstant.COMMON_BASE_COMPONENT_SCAN})
@MapperScan(basePackages = {ScanPackageConstant.MAPPER_SCAN})
@EnableTransactionManagement
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
public class WebApplication {

	public static void main(String[] args) {
		SpringApplication.run(WebApplication.class, args);
		System.out.println("加载完成....");
	}
}
